#include "Common/Exception.h"

#include <cstdio>
#include <cstring>

#include <vector>

Exception::Exception()
{
	m_message = 0;
}

Exception::Exception(const char* message)
{
	size_t message_length = std::strlen(message) + 1;

	char* my_message = new char[message_length];
	std::strncpy(my_message, message, message_length);
	my_message[message_length-1] = '\0';

	m_message = my_message;
}

const char* Exception::message() const
{
	return m_message != 0 ? m_message : "";
}

Exception::~Exception()
{
}
